package com.ocp.socket.busi.jpush.mapper;

import com.ocp.socket.busi.jpush.bean.PushLog;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author : lichong
 * @description :
 * @Date Create in 20:36 2019/5/8
 * @Modified By :
 **/
@Mapper
public interface JPushLogMapper {

    /**
     * 插入推送记录
     *
     * @param pushLog
     * @return
     */
    Integer insertPushLog(@Param("pushLog")PushLog pushLog);

    /**
     * 插入关联关系
     *
     * @param logId
     * @param targetIds
     * @return
     */
    int insertPushLogRel(@Param("logId")Integer logId, @Param("targetIds")List<String> targetIds);

    /**
     * 修改推送记录
     *
     * @return
     */
    int updatePushLog(@Param("logId")Integer logId, @Param("status")Integer status, @Param("msgId")Long msgId);
}
